<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='编辑其他件出库单', subtext='编辑指定其他件出库单数据'">

<head>
	<title>编辑其他件出库单</title>
</head>
<body>
	<th:block layout:fragment="content">
		<div class="box">
			<div class="box-body">
				<form id="soForm" name="soForm" th:object="${m}" th:action="@{|${baseUrl}/save${m.id==null?'':'/' + m.id}|}" method="post" class="form-horizontal" novalidate="novalidate">
					<input id="id" type="hidden" name="id" th:field="*{id}" />
					<input id="version" type="hidden" name="version" th:field="*{version}" />
					<div class="row line">
						<div class="col-lg-6">
							<h3 class="page-header">基本设置</h3>
						</div>
					</div>



					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">单号</label>
								<div class="col-sm-8 form-control-static">
									<input id="documentNumber" name="documentNumber" th:value="*{documentNumber}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">外部单号</label>
								<div class="col-sm-8 form-control-static">
									<input id="refDocNumber" name="refDocNumber" th:value="*{refDocNumber}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">生产订单</label>
								<div class="col-sm-8 form-control-static">
									<input id="refAsnNumber" name="refAsnNumber" th:value="*{refAsnNumber}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">订单WBS</label>
								<div class="col-sm-8 form-control-static">
									<input id="paymentTerms" name="paymentTerms" th:value="*{paymentTerms}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">分厂</label>
								<div class="col-sm-8 form-control-static">
									<input id="consigneeName" name="consigneeName" th:value="*{consigneeName}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">产线</label>
								<div class="col-sm-8 form-control-static">
									<input id="planLoadPlace" name="planLoadPlace" th:value="*{planLoadPlace}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">工位</label>
								<div class="col-sm-8 form-control-static">
									<input id="planLoadDoor" name="planLoadDoor" th:value="*{planLoadDoor}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">配盘点</label>
								<div class="col-sm-8 form-control-static">
									<input id="deliveryFromPlace" name="deliveryFromPlace" th:value="*{deliveryFromPlace}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
								</div>
							</div>
						</div>
					</div>

							<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">备注</label>
										<div class="col-sm-8 form-control-static">
											<input id="notes" name="notes" th:value="*{notes}" maxlength="400" class="form-control" />
										</div>
									</div>
								</div>
							</div>


					<div class="hr-line-dashed"></div>
						   <div class="form-group">
								<div class="text-center">
									<a class="btn btn-default " th:href="@{|${baseUrl}|}"> 
									    <i class="fa fa-fw fa-reply"></i> 返回
									</a>
									<button type="submit" class="btn btn-primary">
										<i class="fa fa-fw  fa-save"></i> 保存
									</button>
								</div>
						  </div>	
				</form>
			</div>
		</div>
	</th:block>
	<th:block layout:fragment="scripts">
		<script th:replace="layouts/fragments/validatejs :: validate"></script>
		<script th:inline="javascript">
    	  // 后端传入前端使用的变量JS中定义
	      var oldNo = /*[[${m.documentNumber}]]*/'';
    	</script>
		<script th:src="@{|${theme}/js/app/outbound/otso_form.js?v=${applicationVersion}|}" th:inline="javascript"></script>
	</th:block>
</body>

</html>